package com.beep.erp.common.bean;


import com.beep.erp.common.base.BaseBean;

/**
 * FileName: ResultBean
 * description:
 * Author: Jolly
 * Date: 2016/8/10
 */
public class ResultBean<T extends BaseBean> {

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return msg;
    }

    public void setMessage(String message) {
        this.msg = message;
    }

    //用来模仿Messagesa
    private T data;
    public String action;


    public T getMessages() {
        return data;
    }

    public void setMessages(T messages) {
        data = messages;
    }


    public boolean isOk() {
        return code != 0;
    }

}
